package xyz.bali16.module.article.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;
import xyz.bali16.module.article.entity.Category;
import xyz.bali16.module.article.entity.Tag;
import xyz.bali16.module.article.model.category.CategoryAddParam;
import xyz.bali16.module.article.model.category.CategoryPageParam;
import xyz.bali16.module.article.model.category.CategoryUpdateParam;
import xyz.bali16.module.article.model.tag.TagPageParam;


public interface CategoryService extends IService<Category> {
    /**
     * 分页查询目录列表
     * @param param 参数
     * @return 分页结果
     */
    IPage<Category> getPage(CategoryPageParam param);
    void addCategory(CategoryAddParam param) throws Exception;

    void updateCategory(CategoryUpdateParam param) throws Exception;

    void delete(String categoryId) throws Exception;
}
